// src/api/index.js
import request from "@/api/axios";

// 示例：获取商品信息
// 导出一个函数，用于获取产品列表
export function AlipayPagePay(
  AlipayTradePagePayViewModel: any,
  form: any
): Promise<any> {
  // 发送一个get请求，获取产品列表
  debugger;
  return request({
    url: `WapPay?OutTradeNo=${AlipayTradePagePayViewModel.OutTradeNo}&Subject=${AlipayTradePagePayViewModel.Subject}&ProductCode=${AlipayTradePagePayViewModel.ProductCode}&Body=${AlipayTradePagePayViewModel.Body}&TotalAmount=${AlipayTradePagePayViewModel.TotalAmount}&NotifyUrl=${AlipayTradePagePayViewModel.NotifyUrl}&ReturnUrl=${AlipayTradePagePayViewModel.ReturnUrl}`,
    method: "post",
  });
}
